"use strict";
function reverseArr(a) {
    return [a[1]];
}
console.log(reverseArr(['123', 456]));
function map(arr, fn) {
    return arr.map(fn);
}
function zzz(item, index, arr) {
    console.log(item, index, arr);
    return item;
}
const sr = map(['1', '2', '3'], zzz);
console.log(sr);
